import { RouteRecordRaw } from "vue-router"
const routerName = 'user';
import Layout from "@/layout/index.vue";
import {Person} from "@vicons/ionicons5";
import { renderIcon } from "@/utils"; 

const routes:Array<RouteRecordRaw> = [
{ 
    path:'/user',
    name:routerName,
    component:Layout,
    redirect:'/user/list',
    meta:{
      title:'用户管理',
      icon:renderIcon(Person),
      sort:1
    },
    children:[
      {
        path:'list',
        name:`${routerName}_list`,
        meta:{
          title:'用户列表',
          icon:renderIcon(Person)
        },
        component:()=> import("@/views/User/index.vue")

      }
    ]
  }
]

export default routes;